<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMerchantMedicineAreaTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('merchant_medicine_area', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->bigInteger('merchant_id')   ->default(0) ->comment('商家id');
            $table->string('name')->default('')->comment('专区名称');
            $table->string('desc')->default('')->comment('专区描述');
            $table->bigInteger('img_id')->default(0)->comment('背景图片id');
            $table->integer('sort')->default(0)->comment('排序:数字越小越前');
            $table->integer('status')->default(0)->comment('展示状态0不显示，1显示');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
//        Schema::dropIfExists('merchant_medicine_area');
    }
}
